package pagemodel;

import javax.validation.constraints.Pattern;

public class RegisterUser {
    @Pattern(regexp = "^[a-zA-Z0-9](\\w|.|-){2,16}[a-zA-Z0-9]$",message = "用户名的格式不正确")
    String regisUsername;
    @Pattern(regexp = "^[0-9a-zA-Z]{4,18}$",message = "密码的格式不正确！")
    String regisPassword;

    String conformPwd;
    String regis_pic;

    @Override
    public String toString() {
        return "RegisterUser{" +
                "regisUsername='" + regisUsername + '\'' +
                ", regisPassword='" + regisPassword + '\'' +
                ", conformPwd='" + conformPwd + '\'' +
                ", regis_pic='" + regis_pic + '\'' +
                '}';
    }

    public String getRegisUsername() {
        return regisUsername;
    }

    public void setRegisUsername(String regisUsername) {
        this.regisUsername = regisUsername;
    }

    public String getRegisPassword() {
        return regisPassword;
    }

    public void setRegisPassword(String regisPassword) {
        this.regisPassword = regisPassword;
    }

    public String getConformPwd() {
        return conformPwd;
    }

    public void setConformPwd(String conformPwd) {
        this.conformPwd = conformPwd;
    }

    public String getRegis_pic() {
        return regis_pic;
    }

    public void setRegis_pic(String regis_pic) {
        this.regis_pic = regis_pic;
    }
}
